/*************************************************************************
	> File Name: errorstr.c
	> Author: KyleShaw
	> Mail: xtk621@gmail.com 
	> Created Time: 2014-11-30 10:17:32
 ************************************************************************/

#include <stdio.h>
#include <apue.h>
#include <errno.h>

int main(int argc, char ** argv)
{
	fprintf(stderr, "EACCESS: %s\n", strerror(EACCES));
	fprintf(stderr, "EAGAIN: %s\n", strerror(EAGAIN));
	fprintf(stderr, "ENFILE: %s\n", strerror(ENFILE));
	fprintf(stderr, "ENOBUFS: %s\n", strerror(ENOBUFS));
	fprintf(stderr, "ENOLCK: %s\n", strerror(ENOLCK));
	fprintf(stderr, "ENOSR: %s\n", strerror(ENOSR));
	fprintf(stderr, "ENOMEM: %s\n", strerror(ENOMEM));
	errno = ENOENT;
	perror(argv[0]);
	exit(0);
}
